package org.keyyond.ms.business.dao;

import java.util.Map;

import org.keyyond.ms.business.mapper.MsBusinessDocumentMapper;
import org.keyyond.ms.business.mapper.MsBusinessMessageLogMapper;
import org.keyyond.ms.business.model.MsBusinessDocument;
import org.keyyond.ms.business.model.MsBusinessMessageLog;
import org.keyyond.ms.business.util.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
 * @author zhuyong
 * @belong to Shccs
 * @date:2018-1-19(V1.0)
 * @date:2018-1-19(V1.0)
 * @version : V1.0
 */
@Component
public class MsBusinessDocumentDao extends BaseDao<MsBusinessDocument> {
	
	private static final long serialVersionUID = -8210210156580849908L;
	
	@Autowired
	private MsBusinessDocumentMapper msBusinessDocumentMapper;
	
	/**
	 * 获取发送验证码次数
	 * 
	 * @author gaoB
	 * @since 2018-5-16
	 * @category </br>获取发送验证码次数</br>
	 *           
	 * @param id
	 *            | long | 必填  主键id
	 * @return <b>int</br>
	 * @exception 
	 */
	public MsBusinessDocument selectByPrimaryKey(Long id) {
		return msBusinessDocumentMapper.selectByPrimaryKey(id);
	}
	
	/**
	 * 更新document
	 * 
	 * @author gaoB
	 * @since 2018-5-16
	 * @category </br>更新document</br>
	 *           
	 * @param record
	 *            | MsBusinessDocument | 必填  
	 * @return <b>[成功返回]：</b><b> 大于0</br> <b>[失败返回]:</b><b>小于等于0</br>
	 * @exception 
	 */
	public int updateByPrimaryKeySelective(MsBusinessDocument record) {
		return msBusinessDocumentMapper.updateByPrimaryKeySelective(record);
	}
	
	/**
	 * 通过docCode查询
	 * 
	 * @author gaoB
	 * @since 2018-5-16
	 * @category </br>通过docCode查询</br>
	 *           
	 * @param docCode
	 *            | string | 必填  
	 * @return <b>MsBusinessDocument </br>
	 * @exception 
	 */
	public MsBusinessDocument selectByDocCode(String docCode){
		return msBusinessDocumentMapper.selectByDocCode(docCode);
	}
	
	
	
	
}
